#include <stdio.h>

int main() {
	int n;
	int fact = 1;
	scanf("%d", &n);
	int i = n;
	if (n <= 1) {
		printf("n!=1");
	} else {
		for (n > 1; n--)
			fact *= n ;
		printf("%d!=%d", i, fact);
	}
	return 0;
}